Procedure

A procedure is several consecutive commands assembled in one block that can be called from the script wherever you want. This allow a greater readabillity of the script as well as shorting the script in some case.

A Procedure is comprised between the command Label and Return.

ie.

...(script lines)
Gosub HitTheTarget
...(script lines)


Label HitTheTarget
InformPlayer 5,"You hit the Target..."
TriggerEvent 4
PlaySound 4
Return